<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbreqperCreateDlg" widgetVar="PyfntbreqperCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyfntbreqperTitle}">

            <h:form id="PyfntbreqperCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyfntbreqperController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_categoria}" for="categoria" />
                        <p:inputText id="categoria" value="#{pyfntbreqperController.selected.categoria}" title="#{myBundle.CreatePyfntbreqperTitle_categoria}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_categoria}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_mesinicio}" for="mesinicio" />
                        <p:inputText id="mesinicio" value="#{pyfntbreqperController.selected.mesinicio}" title="#{myBundle.CreatePyfntbreqperTitle_mesinicio}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_mesinicio}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_mesfin}" for="mesfin" />
                        <p:inputText id="mesfin" value="#{pyfntbreqperController.selected.mesfin}" title="#{myBundle.CreatePyfntbreqperTitle_mesfin}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_mesfin}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_mensual}" for="mensual" />
                        <p:inputText id="mensual" value="#{pyfntbreqperController.selected.mensual}" title="#{myBundle.CreatePyfntbreqperTitle_mensual}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_mensual}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_dectercero}" for="dectercero" />
                        <p:inputText id="dectercero" value="#{pyfntbreqperController.selected.dectercero}" title="#{myBundle.CreatePyfntbreqperTitle_dectercero}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_dectercero}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_deccuarto}" for="deccuarto" />
                        <p:inputText id="deccuarto" value="#{pyfntbreqperController.selected.deccuarto}" title="#{myBundle.CreatePyfntbreqperTitle_deccuarto}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_deccuarto}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_aportepatronal}" for="aportepatronal" />
                        <p:inputText id="aportepatronal" value="#{pyfntbreqperController.selected.aportepatronal}" title="#{myBundle.CreatePyfntbreqperTitle_aportepatronal}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_aportepatronal}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_freserva}" for="freserva" />
                        <p:inputText id="freserva" value="#{pyfntbreqperController.selected.freserva}" title="#{myBundle.CreatePyfntbreqperTitle_freserva}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqperRequiredMessage_freserva}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbreqperController.selected.fecharegistro}" title="#{myBundle.EditPyfntbreqperTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbreqperRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbreqperController.selected.observaciones}" title="#{myBundle.CreatePyfntbreqperTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_pyfntbpoaprogid}" for="pyfntbpoaprogid" />
                        <p:selectOneMenu id="pyfntbpoaprogid" value="#{pyfntbreqperController.selected.pyfntbpoaprogid}" required="true" requiredMessage="#{myBundle.EditPyfntbreqperRequiredMessage_pyfntbpoaprogid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpoaprogController.items}"
                                           var="pyfntbpoaprogidItem"
                                           itemValue="#{pyfntbpoaprogidItem}"
                                           itemLabel="#{pyfntbpoaprogidItem.pyfntbpoaprogid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpoaprogConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqperLabel_pyfntbpoaid}" for="pyfntbpoaid" />
                        <p:selectOneMenu id="pyfntbpoaid" value="#{pyfntbreqperController.selected.pyfntbpoaid}" required="true" requiredMessage="#{myBundle.EditPyfntbreqperRequiredMessage_pyfntbpoaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpoaController.items}"
                                           var="pyfntbpoaidItem"
                                           itemValue="#{pyfntbpoaidItem}"
                                           itemLabel="#{pyfntbpoaidItem.pyfntbpoaid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpoaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbreqperController.saveNew}" value="#{myBundle.Save}" update="display,:PyfntbreqperListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbreqperCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbreqperCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
